using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace DAO
{
    public class BaseConnectionDAO
    {
        private static string ChuoiKetNoi = @"Data Source=MOBILE-E8D21818\SQLEXPRESS;Initial Catalog=QuanLyDoiXe;Integrated Security=true";
        protected static SqlConnection MoKetNoi(string error)
        {
            SqlConnection KetNoi = new SqlConnection(ChuoiKetNoi);
            try
            {
                KetNoi.Open();
            }
            catch (Exception ex)
            {
                error = ex.Message;
                return null;
            }
            return KetNoi;
        }
    }
}
